package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.MyCredit;
import cn.wolfcode.trip.base.domain.Travel;
import cn.wolfcode.trip.base.domain.Travel;
import cn.wolfcode.trip.base.query.TravelQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ITravelService {


    void save(Travel travel);

    void update(Travel travel);

    Travel get(Long id);


    PageInfo selectForList(TravelQuery qo);

    void changeState(Travel travel, Long authorId);

    Travel selectByTravelId(Long travelId);

    void deleteRealtion(Long travelId, Long strategyId);

    List<Travel> getRegionTravelByStrategyId(Long strategyId);

    void insertRelation(Long strategyId, Long travelId);

    List<Travel> getTravelByStrategyId(Long strategyId);

    List<Travel> selectByTargetId(Long targetId);
}
